import request from '@/utils/request'

// 查询用证申请列表
export function listLicense_application(query) {
  return request({
    url: '/ehr/license_application/list',
    method: 'get',
    params: query
  })
}

// 查询用证申请详细
export function getLicense_application(applyId) {
  return request({
    url: '/ehr/license_application/' + applyId,
    method: 'get'
  })
}

// 新增用证申请
export function addLicense_application(data) {
  return request({
    url: '/ehr/license_application',
    method: 'post',
    data: data
  })
}

// 修改用证申请
export function updateLicense_application(data) {
  return request({
    url: '/ehr/license_application',
    method: 'put',
    data: data
  })
}

// 删除用证申请
export function delLicense_application(applyId) {
  return request({
    url: '/ehr/license_application/' + applyId,
    method: 'delete'
  })
}

// 提交用证申请审批
export function approvalLicense_application(data) {
  return request({
    url: '/ehr/license_application/approval',
    method: 'post',
    data: data
  })
}
